package com.xiaohan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})   //配置文件中未添加数据库时，先排除Mybatis需要的数据源自动配置，防止启动报错
@SpringBootApplication
@MapperScan("com.xiaohan.usercenter.mapper")  //即使不使用@Mapper注解也可以识别其中的bean对象
public class BackendApplication {

	public static void main(String[] args) {
		SpringApplication.run(BackendApplication.class, args);
	}

}
